package com.example.service;

import com.example.domain.User;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface UserService {
    List<User> selectUserById(Integer id);

    String selectUnameById(Integer id);

    List<String> selectUname();

    User selectLimitById(Integer id);

    Integer selectIdByUname(String uname);

    List<User> selectUser(String object)throws Exception;

    List<User> searchUserByAll(Integer id,String name) throws Exception;

    List<User> selectUidByUname(String name);

    List<User> showAllUser();

    Boolean updateUser(String uid,String uname)throws Exception;

    Boolean InsertUser(String uid,String uname)throws Exception;

    Boolean hasId(String uid)throws Exception ;

    Boolean deleteUser();

    //====================下面是针对管理员的操作=======================

    Boolean addManager(Integer id);

    Boolean removeManger(Integer id);

    List<User> showManager();
}
